STEP 7: Notice that we've added a second dice sprite to your code. Now we need to set the value range for roll_2.

The parameters in randint set the range. Since dice have 6 sides we want a random number between 1 and 6.

  • Change the range of roll_2 so that the random number will be between 1 and 6.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)